package com.example.course.mapper;

import com.example.course.bean.Teacher;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TeacherMapper {
    Teacher selectTeacher(Teacher teacher);
    List<Teacher> selectTeachers();
    int updateTeacher(Teacher teacher);
    int deleteTeacher(int id);
    int insertTeacher(Teacher teacher);
    Teacher selectTeacherByTeacherId(int id);
    Teacher selectTeacherByAccount(String account);
    int deleteCourseStudent1(int id);
    int deleteCourseTeacher1(int id);
    List<Object> selectTeachersByTeacherId(int id);
    List<Object> selectStudentsByTeacherId(int id);
    Teacher selectTeacherByCourseId(int id);
}
